package com.mtk.launcher.view;

import android.content.Context;
import android.view.View;
import android.widget.Button;

import com.mtk.launcher.R;

/***
 * 卡片样式得布局
 */
public class ButtonGenerate extends LayoutViewBase {

    View view;

    public ButtonGenerate(Context context, int x, int y, int width, int height) {
        super(x, y, width, height);
        view = View.inflate(context, R.layout.view_button, null);
        btn_view = view.findViewById(R.id.btn_view);
        btn_view.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if (objectClickListener != null) {
                    objectClickListener.clickView();
                }
            }
        });
    }

    Button btn_view;


    @Override
    public void timeChangeToUpdateView() {

    }

    @Override
    public View getView() {
        return view;
    }

    @Override
    public void clearMemory() {
    }

}
